//
//  FFBankcardListVC.m
//  LLWallet
//
//  Created by tt on 2020/9/9.
//

#import "FFBankcardListVC.h"
#import "FFBankcardListVM.h"
#import "FFWalletConst.h"
@interface FFBankcardListVC ()<FFBankcardListVMDelegate>

@end

@implementation FFBankcardListVC

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.viewModel = [FFBankcardListVM new];
        self.viewModel.delegate = self;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refresh) name:LIM_NOTIFY_WALLET_BNAKCARD_REFRESH object:nil];
}

- (NSString *)langTitle {
    return LLang(@"银行卡");
}

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self name:LIM_NOTIFY_WALLET_BNAKCARD_REFRESH object:nil];
}

-(void) refresh {
    [self reloadRemoteData];
}

- (void)ff_bankcardList:(FFBankcardListVM *)vm click:(FFBankcardListResp *)resp {
    if(self.onSelect) {
        self.onSelect(resp);
    }
}


@end
